package cn.tedu.aiumall.product.webapi.mapper;

import cn.tedu.aiumall.common.pojo.product.entity.Sku;
import cn.tedu.aiumall.common.pojo.product.vo.SkuStandardVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SkuMapper {
    int insert(Sku sku);

    int deleteBySkuId(Long skuId);

    SkuStandardVO getById(Long id);

    int updateStockById(@Param("id")Long skuId, @Param("stock")Integer quantity);
}
